<?php
namespace app\admin\validate;

use think\Validate;

class Company extends Validate{

    protected $rule = [
//        'logo'  =>  'require',
        'name|企业名称' =>  'require|max:50',
        'name_short|企业简称' =>  'require|max:30',
        'account|企业账号' =>  'require|max:30',
        'account_code|企业代码' =>  'require|min:6|max:18',
//        'trade_id|所属行业' =>  'gt:0',
//        'manage_id|经营类型' =>  'gt:0',
        'principal|企业负责人' =>  'require|max:20',
//        'com_mobile|公司电话' =>  'require|max:15',
        'duty|职务' =>  'require|max:30',
        'mobile|移动电话' =>  'require|max:15',
//        'set_time|成立时间' =>  'require',
        'province_id|省份' =>  'gt:0',
//        'city_id|城市' =>  'gt:0',
//        'area_id|地区' =>  'gt:0',
        'address|地址' =>  'require|max:255',
//        'email|电子邮箱' =>  'require|email|max:50',
//        'code|邮编' =>  'require|max:15',
//        'url|网址' =>  'require|max:255',
        'docking_people|对接人' =>  'require|max:20',
        'docking_mobile|对接人电话' =>  'require|max:15',
        'start_time|启动日期' =>  'require',
        'use_time|到期时间' =>  'require',
        'use_people|使用用户量' =>  'require',
    ];

}